#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>

using namespace std;

int main()
{
	int a = 0, n = 0;
	cin >> a >> n;
	int sum = 1;
	while (n--)
	{
		sum *= a;
	}
	cout << sum << endl;

	return 0;
}